# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1239.1.3 -> 1.1239.1.4 # include/asm-ia64/sn/nodepda.h 1.8 -> 1.9 # arch/ia64/kernel/time.c 1.32 -> 1.33 # include/asm-ia64/numa.h 1.5 -> 1.6 # arch/ia64/kernel/mca.c 1.41 -> 1.42 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/09/08 davidm@tiger.hpl.hp.com 1.1241 # Merge tiger.hpl.hp.com:/data1/bk/lia64/to-linus-2.5 # into tiger.hpl.hp.com:/data1/bk/lia64/linux-ia64-2.5 # -------------------------------------------- # 03/09/08 davidm@tiger.hpl.hp.com 1.1242 # Some more __attribute_used__ fixes. # -------------------------------------------- # 03/09/09 jbarnes@sgi.com 1.1239.1.4 # [PATCH] ia64: cpumask_t fixes # # This patch coverts a few spots to use cpumask_t instead of unsigned # long. # -------------------------------------------- # diff -Nru a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c --- a/arch/ia64/kernel/mca.c Fri Sep 19 00:40:15 2003 +++ b/arch/ia64/kernel/mca.c Fri Sep 19 00:40:15 2003 @@ -1193,7 +1193,7 @@ ia64_mca_cmc_poll (unsigned long dummy) { /* Trigger a CMC interrupt cascade */ - platform_send_ipi(__ffs(cpu_online_map), IA64_CMCP_VECTOR, IA64_IPI_DM_INT, 0); + platform_send_ipi(first_cpu(cpu_online_map), IA64_CMCP_VECTOR, IA64_IPI_DM_INT, 0); } /* @@ -1260,7 +1260,7 @@ ia64_mca_cpe_poll (unsigned long dummy) { /* Trigger a CPE interrupt cascade */ - platform_send_ipi(__ffs(cpu_online_map), IA64_CPEP_VECTOR, IA64_IPI_DM_INT, 0); + platform_send_ipi(first_cpu(cpu_online_map), IA64_CPEP_VECTOR, IA64_IPI_DM_INT, 0); } /* diff -Nru a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c --- a/arch/ia64/kernel/time.c Fri Sep 19 00:40:15 2003 +++ b/arch/ia64/kernel/time.c Fri Sep 19 00:40:15 2003 @@ -187,7 +187,7 @@ ia64_do_profile (struct pt_regs * regs) { unsigned long ip, slot; - extern unsigned long prof_cpu_mask; + extern cpumask_t prof_cpu_mask; profile_hook(regs); diff -Nru a/include/asm-ia64/numa.h b/include/asm-ia64/numa.h --- a/include/asm-ia64/numa.h Fri Sep 19 00:40:15 2003 +++ b/include/asm-ia64/numa.h Fri Sep 19 00:40:15 2003 @@ -23,7 +23,7 @@ #include extern volatile char cpu_to_node_map[NR_CPUS] __cacheline_aligned; -extern volatile unsigned long node_to_cpu_mask[NR_NODES] __cacheline_aligned; +extern volatile cpumask_t node_to_cpu_mask[NR_NODES] __cacheline_aligned; /* Stuff below this line could be architecture independent */ diff -Nru a/include/asm-ia64/sn/nodepda.h b/include/asm-ia64/sn/nodepda.h --- a/include/asm-ia64/sn/nodepda.h Fri Sep 19 00:40:15 2003 +++ b/include/asm-ia64/sn/nodepda.h Fri Sep 19 00:40:15 2003 @@ -128,7 +128,7 @@ * Check if given a compact node id the corresponding node has all the * cpus disabled. */ -#define is_headless_node(cnode) (!node_to_cpumask(cnode)) +#define is_headless_node(cnode) (!any_online_cpu(node_to_cpumask(cnode))) /* * Check if given a node vertex handle the corresponding node has all the